package com.qinggeng.project.system.mapper;

import com.qinggeng.project.system.domain.GiftProbability;

import java.math.BigDecimal;
import java.util.List;

public interface GiftProbabilityMapper {

    int insertGiftProbability(GiftProbability giftProbability);

    int updateGiftProbability(GiftProbability giftProbability);

    List<GiftProbability> selectGiftProbabilityList(GiftProbability giftProbability);

    GiftProbability selectGiftProbabilityById(Long id);
    int deleteGiftProbabilityByIds(Long[] ids);

    /**
     * 根据商品价格查询助力次数
     * @param goodsPrice
     * @return
     */
    GiftProbability selectHelpNumByGoodsPrice(BigDecimal goodsPrice);
}
